#include "RTTI.h"


RTTI::RTTI( string name, RTTI* base /*= NULL*/):m_className(name),m_baseClass(base)
{

}
bool RTTI::derived(RTTI* type)
{
	RTTI* base = getBase();
	while ( base)
	{
		if ( base->isType(type))
			return true;
		base = base->getBase();
	}
	return false;
}